<?php echo $this->doctype();?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php  ?>
<?php echo $this->headTitle(); ?>
<!-- CSS Section -->
<?php $this->headLink()->appendStylesheet($this->baseUrl('/css/style.css')); ?>
<?php $this->headLink()->appendStylesheet($this->baseUrl('js/jquery/ui/css/jquery-ui-1.8.9.custom.css')); ?>
<?php echo $this->headLink(); ?>
<!--[if IE]><link href="<?php echo $this->baseUrl('/css/ie_style.css') ?>" media="screen" rel="stylesheet" type="text/css" /><![endif]-->

<!-- Script Section -->
<?php $this->headScript()->appendFile($this->baseUrl('/js/jquery/jquery-1.4.4.js')); ?>
<?php $this->headScript()->appendFile($this->baseUrl('/js/jquery/ui/jquery-ui-1.8.9.custom.min.js')); ?>
<?php $this->headScript()->appendFile($this->baseUrl('/js/jquery/plugins/validate/jquery.validate.js')); ?>
<?php $this->headScript()->appendFile($this->baseUrl('/js/jquery/plugins/timepicker/jquery-ui-timepicker-addon.js')); ?>

<?php $this->headScript()->appendFile($this->baseUrl('/js/detect_timezone.js')); ?>
<?php $this->headScript()->appendFile($this->baseUrl('/js/common.js')); ?>

<?php echo $this->headScript(); ?>
</head>

<body>
<div class="container">
	<!-- Header -->
	<?php echo $this->render('inc/header.phtml') ?>
	<!-- #header -->
<div id="page">
	<div id="errorContainer" class="gr-error"></div>
	<?php echo $this->flashMessenger(); ?>
	<div id="mbody">  
		<div  class="menudiv" >
			<?php $this->navigation()->menu()->setUlClass('menu');  echo $this->navigation()->menu(); ?>
		</div>
		<div class="submenu">
			<?php echo $this->subMenu(); ?>
		</div>
		<div id="siteContent">
				<?php echo $this->layout()->content; ?>
		</div>
	</div>
</div> 

<div style="clear:both;"></div>
</div>
<div style="clear:both;"></div>
<?php echo $this->render('inc/footer.phtml') ?>
</body>
</html>
<script type="text/javascript">
	$(document).ready(function() {
		$('.menu').accordion({autoHeight: false, active:<?php echo $this->activeMenu; ?>});
		$('.ui-accordion-li-fix .ui-accordion-header').click(function(){
			var tabUrl = $(this).attr('href');
			var url = '<?php echo $this->siteURL ?>'+tabUrl;
			window.location = url
		});
	});
</script>
